package org.example.shop.service.impl;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.example.shop.service.OSSService;
import org.springframework.beans.factory.annotation.Value;

public class OSSServiceImpl implements OSSService {
    @Value("${oss.endpoint}")
    private String endpoint;
    @Value("${oss.key-id}")
    private String accessKeyId;
    @Value("${oss.key-sec}")
    private String accessKeySecret;
    private String bucket = "laowang";

    @Override
    public boolean upload() {
        OSS ossClient = new OSSClientBuilder().build(endpoint, accessKeyId, accessKeySecret);

//        ossClient.putObject("")
        return false;
    }
}
